<template>
  <div>
    <transition>
      <h1 v-show="!iscollapse">第一组</h1>
    </transition>
  </div>
</template>

<script>
export default {
  name: "page01",

  data() {
    return {
    };
  },

  computed: {
    iscollapse() {
      return this.$store.state.tab.iscollapse;
    },
  },

  methods: {},
};
</script>

<style lang="less" scoped>
/deep/ h1 {
  background-color: aqua;
  font-size: 30px;
}

/* 进入的起点、离开的终点 */
.v-enter,
.v-leave-to {
  transform: translateX(-100%);
}
.v-enter-active,
.v-leave-active {
  transition: 0.5s linear;
}
/* 进入的终点、离开的起点 */
.v-enter-to,
.v-leave {
  transform: translateX(0);
}
</style>